<?php
return [
	'components' => [
		'mailer' => [
			'class' => 'yii\swiftmailer\Mailer',
			'viewPath' => '@common/mail',
			// send all mails to a file by default. You have to set
			// 'useFileTransport' to false and configure a transport
			// for the mailer to send real emails.
			'useFileTransport' => true,
		],
		'redis' =>[
			'class' => 'yii\redis\Connection',
			'hostname' => '202.1.100.47',
			'port' => 6379,
			'database' => 0,
		],
		'db' => [
			'class' => 'yii\db\Connection',
			'dsn' => 'mysql:host=202.1.100.47;dbname=jd_preview',
			'username' => 'root',
			'password' => '111111',
			'charset' => 'utf8',
			'tablePrefix' => 'j_',
		],
		'session' => [
			'cookieParams' => [
				'domain' => '.jdstb.com',
				'lifetime' => 0
			],
			'timeout' => 3600,
		],
	],
	//设置时区
	'timeZone' => 'Asia/Shanghai',
];
